{{useCss "/app-pages/css/user/comment.scss"}}
<div class="mainbox">
    <div class="cotitle">订单号：{{$Cache.user.comment.appraise._id}}</div>
    {{#each $Cache.user.comment.appraise.info.goods_info}}
    <div class="cgoods">
        <div>
            <div class="citem img">
                <href class="name" to="/goods_details.html?id={{goods._id}}">
                    <img bind-src="{{goods.preview_img_url}}?imageView/1/w/45" class="goodsimg">
                </href>
            </div>
            <div class="citem info">
                <div>
                    <href class="name" to="goods_details.html?id={{goods._id}}">{{goods.goods_name}}</href>
                </div>
                <div>价格：
                    <span class="price">￥{{goods.price+"/"+goods.unit}}</span>
                    购买数量：{{num+goods.unit}}
                </div>
            </div>
        </div>
        <div class="appraise">
            {{#if $Top.$Cache.user.comment.appraise.info.state==$Top.config.ACH_STATE.ol交易完成||$Top.$Cache.user.comment.appraise.info.state==$Top.config.ACH_STATE.交易完成}}
            <L:input type="number" placeholder="评价等级(0-10)" bind-input="{{'_eval_star_num'}}" bind-value="{{_eval_star_num}}" event-blur="{{'$Top.$Event.user.comment.eval.checkStar'}}"></L:input>
            <L:input type="" placeholder="请输入评价" bind-input="{{'_eval_content'}}"></L:input>
            {{#else}}
            <div>评价时间：{{#Time eval.comment.create_time,"YYYY-MM-DD HH:mm:ss"}}</div>
            <L:input type="number" placeholder="评价等级" class="focus" bind-value="{{_eval_star_num}}" disabled="disabled"></L:input>
            <L:input class="focus" placeholder="评价内容" bind-value="{{_eval_content}}" disabled="disabled"></L:input>
            {{/if}}
        </div>
    </div>
    {{/each}} {{#if $Top.$Cache.user.comment.appraise.info.state==$Top.config.ACH_STATE.ol交易完成||$Top.$Cache.user.comment.appraise.info.state==$Top.config.ACH_STATE.交易完成}}
    <div class="box">
        <button class='btn' event-click="{{'$Event.user.comment.eval.submitEval'}}">提交</button>
    </div>
    {{/if}}
</div>
